#!/bin/bash
# 列表循环举例
for loop in 1 2 3 4 5
do
    echo "The value is: $loop"
done

for str in This is a string
do
    echo $str
done

#数组循环举例
my_array=(1 2 3 4 5)
for i in "${my_array[@]}"; do
    echo "$i"
done